import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'lookForm',
    component: () => import('@/views/lookForm.vue'),
    meta: {
      title: '表单详情'
    }
  },
  {
    path: '/userForm',
    name: 'userForm',
    component: () => import('@/views/userForm.vue'),
    meta: {
      title: '表单详情'
    }
  },
  {
    path: '/record',
    name: 'record',
    component: () => import('@/views/record.vue'),
    meta: {
      title: '填表记录'
    }
  },
  {
    path: '/patientInfo',
    name: 'patientInfo',
    component: () => import('@/views/patientInfo.vue'),
    meta: {
      title: '患者信息'
    }
  },
  {
    path: '/doctorInfo',
    name: 'doctorInfo',
    component: () => import('@/views/doctorInfo.vue'),
    meta: {
      title: '医生信息'
    }
  },
  {
    path: '/infoBound',
    name: 'infoBound',
    component: () => import('@/views/infoBound.vue'),
    meta: {
      title: '信息绑定'
    }
  },
  {
    path: '/status',
    name: 'status',
    component: () => import('@/views/status.vue'),
    meta: {
      title: '信息已提交'
    }
  },
  {
    path: '/establishStatus',
    name: 'establishStatus',
    component: () => import('@/views/establishStatus.vue'),
    meta: {
      title: '信息已提交'
    }
  }
]

const router = new VueRouter({
  routes
})

export default router
